$resourcesFolder = (resolve-path .\resources)

$desktopFolder = (Get-ItemProperty -Path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders').Desktop

$wshell = New-Object -com Wscript.Shell

$litwareHr = $wshell.CreateShortcut("$desktopFolder\Litware WebSite.lnk")
$litwareHr.Description="Litware Website"
$litwareHr.TargetPath="http://www.litware.com"
$litwareHr.IconLocation="$resourcesFolder\litware.ico,0"
$litwareHr.Save()

$binFolder = (resolve-path ..\bin)

$results = [System.IO.File]::Exists("$binFolder\SmartClientApp\Shell.exe")

if ($results -eq $true)
{ 
	 $smartClientLocation = (resolve-path ..\bin\SmartClientApp\Shell.exe)
	 $startInLocation  = (resolve-path ..\bin\SmartClientApp\)

	 $litwareHrSc = $wshell.CreateShortcut("$desktopFolder\Litware Smart Client Application.lnk")
	 $litwareHrSc.Description="Litware Smart Client Application"
	 $litwareHrSc.TargetPath= $smartClientLocation
	 $litwareHrSC.WorkingDirectory= $startInLocation
	 $litwareHrSc.IconLocation="$resourcesFolder\litware.ico,0"
	 $litwareHrSc.Save()
}
